package com.xunlai.infra.permission.manager.web.vo.role;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 12/11/22 7:49 PM
 */
@Data
public class CreateRolePermissionReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = -808353774445688776L;
    /**
     * 角色ID
     */
    private Long roleId;

    /**
     * 角色code
     */
    private String roleCode;

    /**
     * 权限资源id
     */
    @NotNull
    private Long resourceId;

    /**
     * 权限资源类型
     */
    @NotNull
    private Short resourceType;

    /**
     * 权限资源来源 默认BUILD-IN 内置
     */
    @NotNull
    private String resourceSource;
}
